
/*
封装 网络请求
*/ 
const bastUrl = 'http://www.lovegf.cn:9527/api'
// 封装 微信请求 
export const feach = (path, data = null, method = 'GET') => { // ES6 形参设置默认值
  return new Promise((resolve, reject) => {
    wx.request({
      url: bastUrl + path,
      data,
      method,
      header: {
        Authorization: getApp().token
      },
      success: resolve,
      fail: reject
    })
  })
}